package com.sales.enums;

import lombok.Getter;

/**
 * Created by lihu on 2017/9/18.
 */
@Getter
public enum ExceptionEnum {

    PERMISSION_DENIED(403, "权限不足"),
    CODE_OVERDUE(400101, "邀请码已禁用"),
    PROFILE_EXISTS(400102, "当前账号简介信息有误"),
    PROFILE_NOT_EXISTS(400103, "当前账号简介信息有误"),
    USER_EXISTS(400104, "账号已存在"),
    USER_NOT_EXISTS(400105, "账号不存在"),
    USER_PROFILE_NOT_COUNT(400106,"推荐码次数不足");

    private Integer code;

    private String message;

    ExceptionEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
}
